// banner切换
var swiper = new Swiper('#swiper_container_01', {
    pagination: '#swiper_pagination_01',
    direction: 'vertical',
    paginationClickable: true,
    spaceBetween: 30,
    centeredSlides: true,
    autoplay: 10000,
    autoplayDisableOnInteraction: false,
    onInit: function (swiper) {
        if (swiper.activeIndex == 0) {
            $('.lx_01').addClass('xz_animation_01');

            $('.lx_03').addClass('xz_animation_02');
            $('.lx_02').addClass('act_lx_xx_02');

            $('.lx_05').addClass('xz_animation_03');
            $('.lx_04').addClass('act_lx_xx_03');

            $('.lx_07').addClass('xz_animation_04');
            $('.lx_06').addClass('act_lx_xx_04');
        }
    },
    onSlideChangeStart: function (swiper) {
        //Swiper初始化了
        if (swiper.activeIndex == 0) {
            $('.yq_02').removeClass('yq_02_an');
            $('.yq_03').removeClass('yq_03_an');
            $('.yq_04').removeClass('yq_04_an');
            $('.index_03_00').removeClass('index_03_00_an');
            $('.index_03_01').removeClass('index_03_01_an');
            $('.index_03_02').removeClass('index_03_02_an');

            $('.lx_01').addClass('xz_animation_01');
            $('.lx_03').addClass('xz_animation_02');
            $('.lx_02').addClass('act_lx_xx_02');
            $('.lx_05').addClass('xz_animation_03');
            $('.lx_04').addClass('act_lx_xx_03');
            $('.lx_07').addClass('xz_animation_04');
            $('.lx_06').addClass('act_lx_xx_04');
        } else if (swiper.activeIndex == 1) {
            $('.lx_01').removeClass('xz_animation_01');
            $('.lx_03').removeClass('xz_animation_02');
            $('.lx_02').removeClass('act_lx_xx_02');
            $('.lx_05').removeClass('xz_animation_03');
            $('.lx_04').removeClass('act_lx_xx_03');
            $('.lx_07').removeClass('xz_animation_04');
            $('.lx_06').removeClass('act_lx_xx_04');
            $('.index_03_00').removeClass('index_03_00_an');
            $('.index_03_01').removeClass('index_03_01_an');
            $('.index_03_02').removeClass('index_03_02_an');

            $('.yq_02').addClass('yq_02_an');
            $('.yq_03').addClass('yq_03_an');
            $('.yq_04').addClass('yq_04_an');
        } else if (swiper.activeIndex == 2) {
            $('.lx_01').removeClass('xz_animation_01');
            $('.lx_03').removeClass('xz_animation_02');
            $('.lx_02').removeClass('act_lx_xx_02');
            $('.lx_05').removeClass('xz_animation_03');
            $('.lx_04').removeClass('act_lx_xx_03');
            $('.lx_07').removeClass('xz_animation_04');
            $('.lx_06').removeClass('act_lx_xx_04');
            $('.yq_02').removeClass('yq_02_an');
            $('.yq_03').removeClass('yq_03_an');
            $('.yq_04').removeClass('yq_04_an');

            $('.index_03_00').addClass('index_03_00_an');
            $('.index_03_01').addClass('index_03_01_an');
            $('.index_03_02').addClass('index_03_02_an');
        }
    }
});

var s_swiper = new Swiper('#swiper_container_02', {
    direction: 'vertical',
    spaceBetween: 30,
    centeredSlides: true,
    autoplay: 5000,
    autoplayDisableOnInteraction: false
});